package com.ssy.lingxi.member.merchant.api.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 会员权益参数设置方式枚举
 */
public enum MemberRightParamWayEnum {
    /**
     * 按交易金额比例设置 - 1
     */
    SET_BY_TRADE_PRICE_RATE(1, "按交易金额比例设置");

    private Integer code;

    MemberRightParamWayEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }

    public static String getCodeMsg(Integer code) {
        return LanguageHolder.getName(MemberRightParamWayEnum.class, code);
    }
}
